package com.zjdiepu.www.service.base;

import com.diepu.www.client.hzicbc.proxy.request.HzicbcBaseRequest;
import com.diepu.www.client.hzicbc.proxy.response.HzicbcBaseResponse;
import com.diepu.www.client.proxy.hzicbc.request.CommonRequest;
import com.icbc.api.core.ApiResponse;

/**
 * 记录交互日记
 * @author xiongxiaotun
 *
 */
public interface ICommonLogService {
	/**
	 * 添加请求工行的日记
	 * @param hzicbcBaseRequest
	 * @param apiResponse
	 * @param exceptionDes 异常描述
	 * @param service
	 * @param statusEvent 结果
	 */
	void insertRequestLog(HzicbcBaseRequest hzicbcBaseRequest, ApiResponse apiResponse,
			String exceptionDes, String service, boolean statusEvent);
	
	/**
	 * 添加响应工行的日记
	 * @param commonRequest
	 * @param hzicbcBaseResponse
	 * @param exceptionDes
	 * @param service
	 * @param statusEvent
	 */
	void insertCallbackLog(CommonRequest commonRequest, HzicbcBaseResponse hzicbcBaseResponse,
			String exceptionDes, String service, boolean statusEvent);
}
